#-------------------------------------------------
#
# Project created by QtCreator 2025-08-19T22:29:50
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = QtSoftGrating

TEMPLATE = app

DEFINES += QT_DEPRECATED_WARNINGS

CONFIG += c++17 console


SOURCES += \
        main.cpp \
        mainwindow.cpp \
        drawingboard.cpp

HEADERS += \
        mainwindow.h \
        drawingboard.h

FORMS += \
        mainwindow.ui \
        drawingboard.ui

#包含目录
INCLUDEPATH +=  $$PWD/../Public \
                $$PWD/../Plugins/Log \
                $$PWD/../Plugins/Algorithm \
                $$PWD/../Thirdpart/log4cplus-121/include
#导入导出库

 contains(QT_ARCH, x86_64) {

    CONFIG(debug, debug|release):{ #_DEBUG_X64

         DESTDIR = $$PWD/../../bin/x64/debug

         LIBS += -L$$DESTDIR -lLogD \
                             -lGpuD

         #QMAKE_POST_LINK += copy /Y $$PWD/../Thirdpart/log4cplus-121/lib/x64/log4cplusUD.dll $$DESTDIR

     }
    else:CONFIG(release, debug|release):{#_RELEASE_X64

         DESTDIR = $$PWD/../../bin/x64/release

         LIBS += -L$$DESTDIR -lLog \
                             -lGpu

     }
}
else {

    CONFIG(debug, debug|release):{ #_DEBUG_X86

         DESTDIR = $$PWD/../../bin/x86/debug

         LIBS += -L$$DESTDIR -lLogD \
                             -lGpuD

     }
    else:CONFIG(release, debug|release):{#_RELEASE_X86

         DESTDIR = $$PWD/../../bin/x86/release

         LIBS += -L$$DESTDIR -lLog \
                             -lGpu

     }

}

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
